﻿@model IEnumerable<MvcDemo.Models.User>

@{
    ViewBag.Title = "Index";

}

<h2>登录</h2>
<form>
    <div class="form-group">
        <label for="UserName">用户名</label>
        <input type="text" class="form-control" id="UserName" placeholder="用户名">
    </div>
    <div class="form-group">
        <label for="PassWord">密码</label>
        <input type="password" class="form-control" id="PassWord" placeholder="密码">
    </div>
    <div class="form-group">
        <label for="exampleInputFile">文件上传</label>
        <input type="file" id="exampleInputFile">
        <p class="help-block">选择文件进行上传</p>
    </div>
    <div class="checkbox">
        <label>
            <input type="checkbox"> 记住密码
        </label>
    </div>
    <button type="submit" class="btn btn-default" onclick="return login()">提交</button>
</form>
<script>
    function login() {
        var uname = $("#UserName").val();
        var pwd = $("#PassWord").val();
        console.log(uname + ":" + pwd);
        return false;
    }
</script>


